package com.letoken.platform.repo.admin.req.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wyl

 * @date 2022/12/14 12:11
 * @Version 1.0
 */
@Data
@ApiModel(value = "修改页面请求对象", description = "修改页面请求对象")
public class UpdatePageReq {


    @NotNull(message = "资源id不能为空")
    @ApiModelProperty(name = "adminMenuId", value = "资源id", example = "1")
    private Integer adminMenuId;

    @NotBlank(message = "资源名称不能为空")
    @ApiModelProperty(name = "name", value = "菜单名称", example = "用户管理")
    private String name;

    @ApiModelProperty(name = "pid", value = "父资源id")
    private Integer pid;

    @ApiModelProperty(name = "description", value = "描述")
    private String description;

    @ApiModelProperty(name = "url",value = "资源路径")
    private String uri;
}
